package com.bcxj.serviceorder.client;

import com.bcxj.internalcommon.dto.ResponseResult;
import com.bcxj.internalcommon.response.TerminalResponse;
import com.bcxj.internalcommon.response.TrsearchResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * ClassName: ServiceMapClient
 * Package: com.bcxj.serviceorder.client
 * Description:
 *
 * @Author BCXJ
 * @Create 2024/11/13 23:08
 * @Version 1.0
 * @Since 1.0
 */
@FeignClient("service-map")
public interface ServiceMapClient {
    @PostMapping("/terminal/arroundsearch")
    ResponseResult<List<TerminalResponse>> arroundsearch(@RequestParam("center") String center, @RequestParam("radius") String radius);

    @PostMapping("/terminal/trsearch")
    public ResponseResult<TrsearchResponse> trsearch(@RequestParam String tid, @RequestParam Long startTime, @RequestParam Long endTime);
}
